package com.qiangqiang.util;

import lombok.Data;

import java.io.Serializable;

/**
 * Created by q on 2018/2/1.
 */
public class DorStuKeysClass implements Serializable{

    private String dId;
    private String sId;

    public DorStuKeysClass(){}

    public DorStuKeysClass(String dId, String sId) {
        this.dId = dId;
        this.sId = sId;
    }

    public String getdId() {
        return dId;
    }

    public void setdId(String dId) {
        this.dId = dId;
    }

    public String getsId() {
        return sId;
    }

    public void setsId(String sId) {
        this.sId = sId;
    }

    @Override
    public int hashCode() {
        final int PRIME = 31;
        int result = 1;
        result = PRIME * result + ((dId == null) ? 0 : dId.hashCode());
        result = PRIME * result + ((sId == null) ? 0 : sId.hashCode());
        return result;
    }
    @Override
    public boolean equals(Object obj){
        if(this == obj){
            return true;
        }
        if(obj == null){
            return false;
        }
        if(getClass() != obj.getClass()){
            return false;
        }

        final DorStuKeysClass other = (DorStuKeysClass) obj;
        if(dId == null){
            if(other.dId != null){
                return false;
            }
        }else if(!dId.equals(other.dId)){
            return false;
        }
        if(sId == null){
            if(other.sId != null){
                return false;
            }
        }else if(!sId.equals(other.sId)){
            return false;
        }
        return true;
    }
}
